<?php


	define('CHECKED','Checked');
	define('CHILDREN','Children');
	define('INVALID','Invalid');
	define('SPECIAL_DIET','SpecialDiet');


/**
 * 
 * Represents on Flight
 * @author gustavolozano
 *
 */
class Flight
{
	
	/********************************************************
	 * Atributes
	 ********************************************************/
	
	/*
	 * 
	 */
	var $id;
	
	/*
	 * 
	 */
	var $fromCity;
	
	/*
	 * 
	 */
	var $toCity;
	
	/*
	 * 
	 */
	var $price;	
	
	/**
	 * 
	 */
	var $seats; 
	
					   
	function Flight()
	{
		$this->seats= array(array(CHECKED=> "",CHILDREN => "",INVALID => "",SPECIAL_DIET => ""), 
					   array(CHECKED=> "",CHILDREN => "",INVALID => "",SPECIAL_DIET => ""),
					   array(CHECKED=> "",CHILDREN => "",INVALID => "",SPECIAL_DIET => ""),
					   array(CHECKED=> "",CHILDREN => "",INVALID => "",SPECIAL_DIET => ""),
					   array(CHECKED=> "",CHILDREN => "",INVALID => "",SPECIAL_DIET => "")) ;
	}
					   
	function changeSeat($seatNumber,$seatType)
	{	
		$this->seats[$seatNumber][$seatType] = "YES" ;
	}
	
}

?>